import request from "@/utils/request";

export function queryGeneratorDataListByConditionMap2(data) {
  return request({
    url: 'api/efficiencyTools/generatorData/queryGeneratorDataListByConditionMap2',
    method: 'get',
    params: data,
  })
}

export function downloadDataToExcel(data) {

  return request({
    url: 'api/efficiencyTools/generatorData/downloadGeneratorDataListByCondition',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function queryGeneratorDataByCondition(data) {
  return request({
    url: 'api/efficiencyTools/generatorData/queryGeneratorDataByCondition',
    method: 'get',
    params: data,
  })
}


export function updateGeneratorData(data) {
  return request({
    url: 'api/efficiencyTools/generatorData/updateGeneratorData',
    method: 'post',
    data: data,
  })
}

export function saveGeneratorDataSingleLineData(data) {
  return request({
    url: 'api/efficiencyTools/generatorData/saveGeneratorDataSingleLineData',
    method: 'post',
    data: data,
  })
}

export function deleteGeneratorDataByIntegerIdList(data) {
  return request({
    url: 'api/efficiencyTools/generatorData/deleteGeneratorDataByIntegerIdList',
    method: 'delete',
    params: data,
  })
}

export function insertByExcel(data) {
  return request({
    url: '/api/efficiencyTools/generatorData/insertByExcel',
    method: 'post',
    data: data
  })
}
